package cn.bdqn.service.impl;

import cn.bdqn.mapper.DeptMapper;
import cn.bdqn.pojo.Department;

import cn.bdqn.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("deptService")
public class DeptServiceImpl implements DeptService {

    @Resource
    private DeptMapper deptMapper;

    @Override
    public List<Department> findDept() {
        List<Department> deptList = deptMapper.findDept();
        return deptList;
    }
}
